package com.ddwl.message.model;


import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
//import org.springframework.data.mongodb.core.mapping.Document;

import java.time.Instant;
import java.util.List;


/**
 * @author Fu Zhaohui
 */
@Setter
@Getter
//@Document("sys_comment")
public class Comment {

    @Id
    private String id;
    private String itemId;
    private String skuId;
    private String orderId;
    private String userId;
    /**
     * 评价内容
     */
    private String content;
    /**
     * 几星
     */
    private int star;
    /**
     * 点赞
     */
    private int praise;
    /**
     * 回复列表
     */
    private List<Reply> replies;
    /**
     * 评价图片
     */
    private List<CommentMedia> pics;
    /**
     * 创建时间
     */
    private Instant gmtCreated;
    /**
     * 修改时间
     */
    private Instant gmtModified;

}
